import 'Owner.dart';

class Data {
  Data({
      this.name, 
      this.level, 
      this.owner,});

  Data.fromJson(dynamic json) {
    name = json['name'];
    level = json['level'];
    owner = json['owner'] != null ? Owner.fromJson(json['owner']) : null;
  }
  String? name;
  int? level;
  Owner? owner;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['name'] = name;
    map['level'] = level;
    if (owner != null) {
      map['owner'] = owner?.toJson();
    }
    return map;
  }

}